import request from '@/utils/request'

// 查询课程设计列表
export function listDesign(query) {
  return request({
    url: '/teaching/course_design/list',
    method: 'get',
    params: query
  })
}

// 查询课程设计详细
export function getDesign(stageId) {
  return request({
    url: '/teaching/course_design/' + stageId,
    method: 'get'
  })
}

// 新增课程设计
export function addCourse_design(data) {
  return request({
    url: '/teaching/course_design',
    method: 'post',
    data: data
  })
}
// 新增课程设计
export function saveRelatedInterview(cdId,interviewIdList) {
  return request({
    url: '/teaching/course_design/relatedInterview/'+cdId,
    method: 'put',
    data: interviewIdList
  })
}

// 修改课程设计
export function updateDesign(stage,courseList) {
  return request({
    url: '/teaching/course_design/'+stage,
    method: 'put',
    data: courseList
  })
}

// 删除课程设计
export function delCourse_design(id) {
  return request({
    url: '/teaching/course_design/' + id,
    method: 'delete'
  })
}
